import request from "@/utils/request.js";

// 微信登录
export const wxLogin = (data) => {
	return request.get('/fenxiao/wx-login', data)
}

// 用户登录
export const userLogin = (data) => {
	return request.post('/system/auth/login', data)
}

// 获取用户信息
export const getUserInfo = (data) => {
	return request.get('/fenxiao/get-user-info', data)
}

// 获取字典列表
export const getDictionaryList = (data) => {
	return request.get('/system/dict-data/simple-list', data)
}

// 刷新token
export const refreshUserToken = (data) => {
	return request.post(`/system/auth/refresh-token?refreshToken=${data.refreshToken}`, data)
}